package test1;

import lombok.Data;

@Data
public class Book {
    private String name;
    private String home;
    private String date;
    private double price;

    public Book() {
    }

    public Book(String name, String home, String date, double price) {
        this.name = name;
        this.home = home;
        this.date = date;
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", home='" + home + '\'' +
                ", date='" + date + '\'' +
                ", price=" + price +
                '}';
    }
}
